﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrilhaImovel.Core.Entities
{
    public class ConvertEnums
    {
        public static string DisplayPropertyType(PropertyType propertyType)
        {
            string result = "Desconhecido";

            switch (propertyType)
            {
                case PropertyType.House:
                    result = "Casa";
                    break;
                case PropertyType.Apartment:
                    result = "Apartamento";
                    break;
                case PropertyType.Comercial:
                    result = "Comercial";
                    break;
                case PropertyType.Terrain:
                    result = "Terreno";
                    break;
                default:
                    break;
            }

            return result;
        }

        public static string DisplayOperationType(OperationType operationType)
        {
            string result = "Desconhecido";

            switch (operationType)
            {
                case OperationType.Rent:
                    result = "Aluguel";
                    break;
                case OperationType.Sale:
                    result = "Venda";
                    break;
                case OperationType.Release:
                    result = "Lançamento";
                    break;
                case OperationType.Season:
                    result = "Temporada";
                    break;
                default:
                    break;
            }

            return result;
        }
    }
}
